<?php

namespace app\modules\admin\models;

use Yii;

/**
 * This is the model class for table "cw_article".
 *
 * @property integer $art_id
 * @property string $art_title
 * @property string $art_content
 * @property string $art_time
 */
class CwArticle extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'cw_article';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['art_title', 'art_content', 'art_time'], 'required'],
            [['art_content'], 'string'],
            [['art_title', 'art_time'], 'string', 'max' => 255],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'art_id' => 'Art ID',
            'art_title' => '文章标题',
            'art_content' => '文章内容',
            'art_time' => '编辑时间',
        ];
    }
}
